a=2.0
b=1.0
c=0
for i in range(0,21):
	c=c+a/b
	a=a+b
	b=a-b
print "%f" %c
	